/**
 * Created with IntelliJ IDEA.
 * User: ttq
 * Date: 13-8-8
 * Time: 上午9:06
 * To change this template use File | Settings | File Templates.
 */
public class AopServiceImpl implements IAopService {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;

    public void withAop() throws Exception {
        System.out.println("有Aop的函数运行。name:" + name);
        if (name.trim().length() == 0) {
            throw new AccountException();
        }
    }

    @Override
    public void withoutAop() throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.
        System.out.println("没有Aop的函数运行。");
    }

}
